<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><%=basePath%></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/exercise.css">
	
  </head>
  
<body>
<div class="header"><a href="<c:url value='/UserServlet?method=doingExercises'/>">
<span class="span_1">我要做题</span>
</a>
<a href="<c:url value='/UserServlet?method=findWrongExerciseByUser'/>">
<span class="span_2">我的错题</span></a>
<a href="<c:url value='/UserServlet?method=findMyExercise'/>">
<span class="span_3">我的收藏</span></a>
<a href="<%=basePath%>uploadexercise.jsp">
<span class="span_4">添加题目</span></a>
</div>
<div class="big_body">
<form action="<c:url value='/UserServlet?method=checkAnswer'/>">
<br>
<c:forEach items="${exercises }" var="exercise">
<a href="<c:url value='/UserServlet?method=findWrongExerciseById&exerciseId=${exercise.exercisesId }'/>">${exercise.title }</a><br><br>
</c:forEach>
<div class="submit_1"><input type="submit" value="提交" style="width:60px; height:30px; margin-top:50px; font-size:14px; background:#F00; color:#FFF; border:none;"></div>
</form> 

</div>
</body>
</html>
